(function($){
    function openPage() {
        var obj = $(this);
        var url = obj.attr('durl');
        var title = '回答问题';
        layer.open({
            type: 2,
            title: title,
            shadeClose: false,
            shade: 0.8,
            maxmin: true, //开启最大化最小化按钮
            area: ['80%', '80%'],
            content: url
        });
    }
    $(function(){
        $('#order_id').on('click', function () {
            var tag = $('#filterTag').val();
            location.href = '?filterOrder=0&filterTag=' + tag;
        });
        $('#order_answer').on('click', function () {
            var tag = $('#filterTag').val();
            location.href = '?filterOrder=1&filterTag=' + tag;
        });
        $('.but_add_answer').on('click', openPage);
    });
})(jQuery);